import Vue from 'vue'
import Router from 'vue-router'
import Home from './views/Home.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'home',
      component: Home
    },
    {
      path: '/expertList',
      name: 'expertList',
      component: () => import("./views/expertList.vue")
    },
    {
      path: '/expertInfo',
      name: 'expertInfo',
      component: () => import("./views/expertInfo.vue")
    },
    {
      path: '/detail',
      name: 'detail',
      component: () => import("./views/detail.vue")
    },
    {
      path: '/enroll',
      name: 'enroll',
      component: () => import("./views/enroll.vue")
    },
    {
      path: '/login',
      name: 'login',
      component: () => import("./views/login.vue")
    },
    {
      path: '/register',
      name: 'register',
      component: () => import("./views/register.vue")
    }
  ]
})
